package com.coins.common.redis;

import java.io.Serializable;

/**
 * 功能：redis消息结构
 * */
public class RedisMessage implements Serializable {

	private static final long serialVersionUID = -6310099020257703167L;

	public enum Names {
		USERS("users"), STAFF("staff");
		private String values;

		private Names(String values) {
			this.values = values;
		}

		public static Names nvalueOf(String value) {
			for (Names names : Names.values()) {
				if (names.values.equals(value)) {
					return names;
				}
			}
			return null;
		}

		@Override
		public String toString() {
			return this.values;
		}
	}

	/** 消息来源 */
	private String handler;
	/** 消息对像 */
	private Object data;
	/** 排除操作 */
	private String[] excludeIds;

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String[] getExcludeIds() {
		return excludeIds;
	}

	public void setExcludeIds(String[] excludeIds) {
		this.excludeIds = excludeIds;
	}

}
